package com.senven.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.senven.common.entity.Goods;
import com.senven.common.vo.CommonResult;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gjh
 * @since 2022-08-31
 */
public interface IGoodsService extends IService<Goods> {


    CommonResult shopsAdd(Goods goods, String id);

    CommonResult goodsDel(Integer shopsid, String id);


    CommonResult goodsUpdate(Goods goods, String id);

//    CommonResult selectall(GoodsVo goodsVo, Integer page, Integer size);
    CommonResult selectall(String id, Integer currentPage, Integer pageSize, Goods goodsVo);

    CommonResult selectByid(Integer goodsid, Integer branchid, String id);



    CommonResult selectbranchid(Integer branchid, String name, Integer typeid, String id);

    CommonResult collect(Integer goodsid, Integer branchid);

    CommonResult nocollect(Integer id);

    CommonResult selectType();

    CommonResult selectRole(String id);

    CommonResult selectType1(Integer branchid);
}
